using System;
using System.Collections.Generic;
using System.Text;

namespace FutureOpen.Core.func.clas
{
    public class myComparer : IComparer<Mydata>
    {
        int IComparer<Mydata>.Compare(Mydata x, Mydata y)
        {
            if (x.IG < y.IG) return 1;
            else if (x.IG > y.IG) return -1;
            else
                return string.Compare(x.name, y.name);
        }

    }
    public class myComparer2 : IComparer<ClasCat>
    {
        int IComparer<ClasCat>.Compare(ClasCat x, ClasCat y)
        {
            if (x.Score < y.Score) return 1;
            else if (x.Score > y.Score) return -1;
            else return 0;
        }

    }
    class Mydata
    {
        public string name;
        public double IG;
        public int DF;
    }
    class MyFeature
    {
        public int DF;
        public int index;
    }
}
